package com.wtwd.device.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2022-04-26
 */
@ApiModel(value="WeeklySportInfo对象", description="")
public class WeeklySportInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "周报主键id")
    @TableId(value = "weekly_id", type = IdType.AUTO)
    private Long weeklyId;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "日期：yyyy-MM")
    private String date;

    @ApiModelProperty(value = "开始时间：yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "结束时间：yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty(value = "总运动时间：单位秒")
    private Integer totalTime;

    @ApiModelProperty(value = "总运动距离：单位米")
    private Integer totalDistance;

    @ApiModelProperty(value = "总运动卡路里")
    private Integer totalCalories;

    @ApiModelProperty(value = "总步数")
    private Integer totalStepNumber;

    @ApiModelProperty(value = "达标天数")
    private Integer standardDayNumber;

    @ApiModelProperty(value = "本周所有步数，格式{xx,xx,xx,xx,xx,xx,xx}")
    private Integer stepNumber;

    @ApiModelProperty(value = "目标步数")
    private Integer targetStepNumber;


    public Long getWeeklyId() {
        return weeklyId;
    }

    public void setWeeklyId(Long weeklyId) {
        this.weeklyId = weeklyId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getTotalTime() {
        return totalTime;
    }

    public void setTotalTime(Integer totalTime) {
        this.totalTime = totalTime;
    }

    public Integer getTotalDistance() {
        return totalDistance;
    }

    public void setTotalDistance(Integer totalDistance) {
        this.totalDistance = totalDistance;
    }

    public Integer getTotalCalories() {
        return totalCalories;
    }

    public void setTotalCalories(Integer totalCalories) {
        this.totalCalories = totalCalories;
    }

    public Integer getTotalStepNumber() {
        return totalStepNumber;
    }

    public void setTotalStepNumber(Integer totalStepNumber) {
        this.totalStepNumber = totalStepNumber;
    }

    public Integer getStandardDayNumber() {
        return standardDayNumber;
    }

    public void setStandardDayNumber(Integer standardDayNumber) {
        this.standardDayNumber = standardDayNumber;
    }

    public Integer getStepNumber() {
        return stepNumber;
    }

    public void setStepNumber(Integer stepNumber) {
        this.stepNumber = stepNumber;
    }

    public Integer getTargetStepNumber() {
        return targetStepNumber;
    }

    public void setTargetStepNumber(Integer targetStepNumber) {
        this.targetStepNumber = targetStepNumber;
    }

    @Override
    public String toString() {
        return "WeeklySportInfo{" +
                "weeklyId=" + weeklyId +
                ", userId=" + userId +
                ", date='" + date + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", totalTime=" + totalTime +
                ", totalDistance=" + totalDistance +
                ", totalCalories=" + totalCalories +
                ", totalStepNumber=" + totalStepNumber +
                ", standardDayNumber=" + standardDayNumber +
                ", stepNumber=" + stepNumber +
                ", targetStepNumber=" + targetStepNumber +
                '}';
    }
}
